/**
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

mat-icon {
  &.draw-diagram-button-icon {
    margin-left: 0px;
    margin-right: 0px;
  }

  &.filter-button-icon {
    margin-left: 5px;
    margin-right: 5px;
  }
}

.container {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.toolbar-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  height: 100%;
  align-items: center;
}

.left-control {
  grid-column: 1;
  display: flex;
  align-items: center;
}

.center-control {
  grid-column: 2;
}

.right-control {
  grid-column: 3;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 20px;
  margin: 0 20px;
}

.button-group {
  display: flex;
  padding: 5px 10px;
  gap: 5px;
  align-items: center;

  button {
    height: 45px;
  }

  .count-indicator {
    background-color: #3f51b5;
    border-radius: 10px;
    padding: 3px 5px;
    margin: 0 0 0 10px;
    color: white;
    font-size: smaller;

    .divisor {
      padding: 0 3px;
    }
  }
}

.timezone-control {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #3f51b5;

  p {
    margin: auto 3px;
    user-select: none;
  }

  input[type="number"] {
    width: 60px;
    font-size: 20px;
    text-align: center;
    border: none;
    appearance: none;
    border-bottom: 3px solid #3f51b5;

    &:focus {
      outline: none;
      border-bottom: 5px solid #3f51b5;
    }

    &::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    &::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
  }
}
